const toString = Object.prototype.toString;
export const isGenerator = (fn) => fn && typeof fn[Symbol.iterator] === 'function';
export const isArray = (arr) => Array.isArray ? Array.isArray(arr) : toString.call(arr) === '[object Array]'